using Game.Core;
using Game.Main.Model;
using Game.Manager;

namespace Game.Component
{
	public class BreathingMaskItem : BaseItem
	{
		public override void Init(ItemArchiveData data)
		{
			base.Init(data);
		}

		public override void OnAttachItemComplete(bool updatePosition)
		{
			base.OnAttachItemComplete(updatePosition);
			if (parentItem != null && typeof(CharacterItem).IsAssignableFrom(parentItem.GetType()) && !updatePosition)
			{
				Singleton<AudioManager>.Instance.PlaySound("sound_breathing_machine");
			}
		}
	}
}
